package com.admin.education.dataTransferObject.templates;

import com.admin.education.dataTransferObject.applyCrowds.ApplyCrowdsTransfer;
import com.admin.education.dataTransferObject.categorys.CategorysTransfer;
import com.admin.education.dataTransferObject.question.QuestionTransfer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@JsonIgnoreProperties({ "root" })
public class TemplatesTransfer {
    private String name;
    private long id;
    private boolean root;
    private List<QuestionTransfer> questions;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date createTime;
    private BigDecimal templateMark;
    private List<ApplyCrowdsTransfer> applyCrowds;
    private List<CategorysTransfer> categorys;
    private boolean allowMultipleAnswer;
}
